package com.sunshine.litemusic.activity.splash;

import android.content.Intent;
import android.os.Bundle;

import com.sunshine.litemusic.activity.main.MainActivity;
import com.sunshine.litemusic.base.BaseActivity;

/**
 * @author sunshine
 * @date 2020/05/28
 * 闪屏活动，目前没有什么需要加载的数据，所以手动延时两秒后启动主活动
 */
public class SplashActivity extends BaseActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        try {
            Thread.sleep(2000);
            startActivity(new Intent(this, MainActivity.class));
            finish();
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
